{template 'common_header'}

<!-- 幻灯片大 -->
<div data-am-widget="slider" class="am-slider am-slider-c2" data-am-slider='{directionNav:true}'>
    <ul class="am-slides">
        {loop $big_ad_lists $bigad}
        <li>
            <a href="{$bigad['link']}"><img src="{$_W['attachurl']}/{$bigad['url']}" style="height: 180px">
            <div class="am-slider-desc">{$bigad['name']}</div>
            </a>
        </li>
        {/loop}
    </ul>
    <ol class="am-control-nav am-control-paging">
        {loop $big_ad_lists $k $v}
        <li><a class="">{$k}</a><i></i></li>
        {/loop}
    </ol>
</div>

<!-- 置顶 -->
<div class="am-panel am-panel-default" style="margin-bottom:2px">
    <div class="am-panel-bd am-icon-arrow-up" style="font-size: 1.8rem;padding: 1rem;font-weight: bold">置顶职位</div>
</div>
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0">
    <ul class="am-list" style="margin-bottom: 0.6rem">
        {loop $top_lists $job}
        <li class="am-g am-list-item-desced" onclick="location.href='{php echo $this->createMobileUrl('JobShow', array('job_id' => $job['id']));}';" style="padding-left: 1rem">
            <a class="am-list-item-hd ">
                <img src="../addons/thinkidea_rencai/template/static/images/new.gif">&nbsp;{$job['title']}&nbsp;<font color="red">{$config['payroll'][$job['payroll']]}</font>
            </a>
            <div class="am-list-item-text" style="font-size: 1.4rem">
                {$hot_companys[$job['mid']]['name']}
                {if $top_companys[$job['mid']]['isauth'] == 0}
                <span class="am-badge am-badge-default">未认证</span>
                {else}
                <span class="am-badge am-badge-success">已认证</span>
                {/if}
            </div>
            <div class="am-list-item-text" style="max-height: 5.6rem">
                {loop $job['welfare'] $key $welfare}
                <span type="button" class="am-btn am-btn-default am-btn-xs am-radius" style="background-color: #FFF;padding: 0.4rem;margin: 2px">{$config['welfare'][$welfare]}</span>
                {/loop}
            </div>
        </li>
        {/loop}
    </ul>
</div>


<!-- 热门职位 -->
{if $isopenindexhot}
<div class="am-panel am-panel-default" style="margin-bottom:2px;">
    <div class="am-panel-bd am-icon-fire" style="font-size: 1.8rem;padding: 1rem;font-weight: bold">热门职位推荐</div>
</div>
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0">
    <ul class="am-list" style="margin-bottom:0.4rem">
        {loop $hot_jobs $job}
        <li class="am-g am-list-item-desced" onclick="location.href='{php echo $this->createMobileUrl('JobShow', array('job_id' => $job['id']));}';" style="padding-left: 1rem">
            <a class="am-list-item-hd ">
                <img src="../addons/thinkidea_rencai/template/static/images/hot.gif">&nbsp;{$job['title']}&nbsp;<font color="red">{$config['payroll'][$job['payroll']]}</font>
            </a>
            <div class="am-list-item-text" style="font-size: 1.4rem">
                {$hot_companys[$job['mid']]['name']}
            </div>
            <div class="am-list-item-text">
                {loop $job['welfare'] $key $welfare}
                <span type="button" class="am-btn am-btn-default am-btn-xs am-radius" style="background-color: #FFF;padding: 0.4rem">{$config['welfare'][$welfare]}</span>
                {/loop}
            </div>
        </li>
        {/loop}
    </ul>
</div>
{/if}
<!-- 幻灯片小 -->
<div class="am-slider am-slider-default am-slider-carousel" data-am-flexslider="{controlNav:false, itemWidth:160, itemMargin: 5}" style="margin-bottom:5px">
    <ul class="am-slides" style="padding: 10px 0">
    {loop $small_ad_lists $smallad}
    <li><a href="{$smallad['link']}"><img style="height:55px" src="{$_W['attachurl']}/{$smallad['url']}"></a></li>
    {/loop}
    </ul>
</div>

<div class="am-panel am-panel-default" style="margin-bottom:2px">
    <div class="am-panel-bd am-icon-rss" style="font-size: 1.8rem;padding: 1rem;font-weight: bold">最新招聘职位</div>
</div>
<div data-am-widget="list_news" class="am-list-news am-list-news-default" style="margin: 0">
    <ul class="am-list">
        {loop $last_jobs $job}
        <li class="am-g am-list-item-desced" onclick="location.href='{php echo $this->createMobileUrl('JobShow', array('job_id' => $job['id']));}';" style="padding-left: 1rem">
            <a class="am-list-item-hd ">
                <img src="../addons/thinkidea_rencai/template/static/images/new.gif">&nbsp;{$job['title']}&nbsp;<font color="red">{$config['payroll'][$job['payroll']]}</font>
            </a>
            <div class="am-list-item-text" style="font-size: 1.4rem">
                {$hot_companys[$job['mid']]['name']}
            </div>
            <div class="am-list-item-text" style="max-height: 5.6rem">
                {loop $job['welfare'] $key $welfare}
                <span type="button" class="am-btn am-btn-default am-btn-xs am-radius" style="background-color: #FFF;padding: 0.4rem;margin: 2px">{$config['welfare'][$welfare]}</span>
                {/loop}
            </div>
        </li>
        {/loop}
    </ul>
</div>

<div class="am-panel am-panel-default" style="margin-bottom:2px;margin-top:-15px">
    <div class="am-panel-bd am-icon-thumbs-o-up" style="font-size: 1.8rem;padding: 1rem;font-weight: bold">名企推荐</div>
</div>
<ul data-am-widget="gallery" class="am-gallery am-avg-sm-2 am-gallery-default" data-am-gallery="{ pureview: true }" style="margin-top: 0.4rem;background-color:#FFF">
    {loop $companys_positions $p}
    <li>
        <div class="am-gallery-item">
            <a href="{php echo $this->createMobileUrl('CompanyShow', array('companyid' => $p['id']));}"  style="display: block;position: relative">
                <div style="width: 100%;height: 100%;position: absolute;z-index: 1"></div>
                {if $p['logo']}
                <img src="{$atturl}{$p['logo']}" alt="{$p['name']}" style="width: 160px; height: 120px"/>
                {else}
                <div style="width: 160px; height: 120px;background-color: #d1d1d1;font-size:1.2rem ">{$p['name']}</div>
                {/if}
                <h3 class="am-gallery-title">{$p['name']}</h3>
            </a>
        </div>
    </li>
    {/loop}
</ul>
    <script>
        wx.ready(function () {
            sharedata = {
                title: "{$_W['mobile']['share']['index_title']}",
                desc: "{$_W['mobile']['share']['index_desc']}",
                link: "{$_W['siteroot']}app/{php echo $this->createMobileUrl('Index')}",
                imgUrl: "{$_W['attachurl']}{$_W['mobile']['share']['index_pic']}",
                success: function(){
                },
                cancel: function(){
                }
            };
            wx.onMenuShareAppMessage(sharedata);
            wx.onMenuShareTimeline(sharedata);
        });
    </script>
{template 'common_footer'}